#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.10.0
 Author:         myName

 Script Function:
	Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
Func Update()
	;Dagger Check
	If $daggerinfo[4][1] < 0 Then
		GUICtrlSetState($Dagger_Combo_2, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo_3, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo_4, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_4, $GUI_DISABLE)
		GuiCtrlSetState($Dagger_Combo1, $GUI_CHECKED)
		
	ElseIf $daggerinfo[5][1] < 0 Then
		GUICtrlSetState($Dagger_Combo_3, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo_4, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_4, $GUI_DISABLE)
		GuiCtrlSetState($Dagger_Combo2, $GUI_CHECKED)

	ElseIf $daggerinfo[6][1] < 0 Then
		GUICtrlSetState($Dagger_Combo_4, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_4, $GUI_DISABLE)
		GuiCtrlSetState($Dagger_Combo3, $GUI_CHECKED)
	Else
		GuiCtrlSetState($Dagger_Combo4, $GUI_CHECKED)
	EndIf
	If $daggerinfo[2][1] < 0 Then
		GUICtrlSetState($Dagger_Combo_6, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_6, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo7, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_7, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo8, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_8, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo9, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_9, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo10, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_10, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo11, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Label_11, $GUI_DISABLE)
		GUICtrlSetState($Dagger_Combo6,$GUI_UNCHECKED)
	Else
		GUICtrlSetState($Dagger_Combo_6, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Label_6, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Combo_6, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Label_6, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Combo7, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Label_7, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Combo8, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Label_8, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Combo9, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Label_9, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Combo10, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Label_10, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Combo11, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Label_11, $GUI_ENABLE)
		GUICtrlSetState($Dagger_Combo6,$GUI_CHECKED)
	EndIf
	
	If (StringInStr($daggerinfo[1][1], "1")) Then
		GUICtrlSetState($Dagger_Combo7,$GUI_CHECKED)
	
	EndIf
				
	If (StringInStr($daggerinfo[1][1], "2")) Then
		GUICtrlSetState($Dagger_Combo8,$GUI_CHECKED)
	
	EndIf
				
	If (StringInStr($daggerinfo[1][1], "3")) Then
		GUICtrlSetState($Dagger_Combo9,$GUI_CHECKED)
	
	EndIf
				
	If (StringInStr($daggerinfo[1][1], "4")) Then
		GUICtrlSetState($Dagger_Combo10,$GUI_CHECKED)

	EndIf
	
	If (StringInStr($daggerinfo[1][1], "5")) Then
		GUICtrlSetState($Dagger_Combo11,$GUI_CHECKED)

	EndIf
	
	;
	;Cutlass Check
	If $cutlassinfo[4][1] < 0 Then
		GUICtrlSetState($Cutlass_Combo_2, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Combo_3, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Combo_4, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Combo_5, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_5, $GUI_DISABLE)
		GuiCtrlSetState($Cutlass_Combo1, $GUI_CHECKED)
		
	ElseIf $cutlassinfo[5][1] < 0 Then
		GUICtrlSetState($Cutlass_Combo_3, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Combo_4, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Combo_5, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_5, $GUI_DISABLE)
		GuiCtrlSetState($Cutlass_Combo2, $GUI_CHECKED)

	ElseIf $cutlassinfo[6][1] < 0 Then
		GUICtrlSetState($Cutlass_Combo_4, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Combo_5, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_5, $GUI_DISABLE)
		GuiCtrlSetState($Cutlass_Combo3, $GUI_CHECKED)
	Elseif $cutlassinfo[7][1] < 0 Then
		GUICtrlSetState($Cutlass_Combo_5, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_5, $GUI_DISABLE)
		GuiCtrlSetState($Cutlass_Combo4, $GUI_CHECKED)
	Else
		GuiCtrlSetState($Cutlass_Combo5, $GUI_CHECKED)
	EndIf
	
	
	If $cutlassinfo[2][1] < 0 Then
		GUICtrlSetState($Cutlass_Special1, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_6, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Special_2, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_7, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Special_3, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_8, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Special_4, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_9, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Special_5, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Label_10, $GUI_DISABLE)
		GUICtrlSetState($Cutlass_Special_1,$GUI_UNCHECKED)
	Else
		GUICtrlSetState($Cutlass_Special1 , $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Label_6  , $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Special_2, $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Label_7  , $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Special_3, $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Label_8  , $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Special_4, $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Label_9  , $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Special_5, $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Label_10 , $GUI_ENABLE)
		GUICtrlSetState($Cutlass_Special_1,$GUI_CHECKED)
	EndIf	
	
	If (StringInStr($cutlassinfo[1][1], "1")) Then
		GUICtrlSetState($Cutlass_Special_2,$GUI_CHECKED)
	
	EndIf
				
	If (StringInStr($cutlassinfo[1][1], "2")) Then
		GUICtrlSetState($Cutlass_Special_3,$GUI_CHECKED)
	
	EndIf
				
	If (StringInStr($cutlassinfo[1][1], "3")) Then
		GUICtrlSetState($Cutlass_Special_4,$GUI_CHECKED)
	
	EndIf
				
	If (StringInStr($cutlassinfo[1][1], "4")) Then
		GUICtrlSetState($Cutlass_Special_5,$GUI_CHECKED)

	EndIf
	
	
	;Staff Check
	If $staffinfo[1][1] > 0 Then
		GUICtrlSetState($Staff_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Spell_1, $GUI_CHECKED)


	ElseIf $staffinfo[2][1] > 0 Then
		GUICtrlSetState($Staff_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_6, $GUI_DISABLE)	
		GUICtrlSetState($Staff_Spell_2, $GUI_CHECKED)
		
	ElseIf $staffinfo[3][1] > 0 Then	
		GUICtrlSetState($Staff_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Spell_3, $GUI_CHECKED)
		
	ElseIf $staffinfo[4][1] > 0 Then	
		GUICtrlSetState($Staff_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Spell_4, $GUI_CHECKED)
		
	ElseIf $staffinfo[5][1] > 0 Then
		GUICtrlSetState($Staff_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_6, $GUI_DISABLE)
		GUICtrlSetState($Staff_Spell_5, $GUI_CHECKED)

	ElseIf $staffinfo[6][1] > 0 Then		
		GUICtrlSetState($Staff_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_1, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_2, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_3, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_4, $GUI_DISABLE)
		GUICtrlSetState($Staff_Delay_5, $GUI_DISABLE)
		GUICtrlSetState($Staff_Spell_6, $GUI_CHECKED)
	
	EndIf
	;Gun Check
	If  $guninfo[1][1]  < 0 Then
		GUICtrlSetState($Gun_Label_7 , $GUI_DISABLE)
		GUICtrlSetState($Gun_Delay_1 , $GUI_DISABLE)
		GUICtrlSetState($Gun_AimOff  , $GUI_CHECKED)

		
	Else
		GUICtrlSetState($Gun_Label_7 , $GUI_ENABLE)
		GUICtrlSetState($Gun_Delay_1 , $GUI_ENABLE)
		GUICtrlSetState($Gun_AimOn   , $GUI_CHECKED)
		
	EndIf
	
	If ($guninfo[2][1] = "1") Then
		GUICtrlSetState($Gun_Shot_1  , $GUI_CHECKED)
		GUICtrlSetState($Gun_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_6, $GUI_DISABLE)
	ElseIf $guninfo[2][1] = "2" Then
		GUICtrlSetState($Gun_Shot_2  , $GUI_CHECKED)
		GUICtrlSetState($Gun_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_6, $GUI_DISABLE)

	ElseIf $guninfo[2][1] = "3" Then
		GUICtrlSetState($Gun_Shot_3 , $GUI_CHECKED)
		GUICtrlSetState($Gun_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_6, $GUI_DISABLE)
	ElseIf $guninfo[2][1] = "4" Then
		GUICtrlSetState($Gun_Shot_4  , $GUI_CHECKED)
		GUICtrlSetState($Gun_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_5, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_6, $GUI_DISABLE)
	ElseIf $guninfo[2][1] = "5" Then
		GUICtrlSetState($Gun_Shot_5  , $GUI_CHECKED)
		GUICtrlSetState($Gun_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_6, $GUI_DISABLE)
	ElseIf $guninfo[2][1] = "6" Then
		GUICtrlSetState($Gun_Shot_6  , $GUI_CHECKED)
		GUICtrlSetState($Gun_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Gun_Label_5, $GUI_DISABLE)
	EndIf

	;Granade Check
	
	If ($grenadeinfo[1][1] = "1") Then
		GUICtrlSetState($Grenade_1 , $GUI_CHECKED)
		GUICtrlSetState($Grenade_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_5, $GUI_DISABLE)
	ElseIf $grenadeinfo[1][1] = "2" Then
		GUICtrlSetState($Grenade_2 , $GUI_CHECKED)
		GUICtrlSetState($Grenade_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_5, $GUI_DISABLE)

	ElseIf $grenadeinfo[1][1] = "3" Then
		GUICtrlSetState($Grenade_3 , $GUI_CHECKED)
		GUICtrlSetState($Grenade_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_4, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_5, $GUI_DISABLE)
	ElseIf $grenadeinfo[1][1] = "4" Then
		GUICtrlSetState($Grenade_4 , $GUI_CHECKED)
		GUICtrlSetState($Grenade_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_5, $GUI_DISABLE)
	ElseIf $grenadeinfo[1][1] = "5" Then
		GUICtrlSetState($Grenade_5 , $GUI_CHECKED)
		GUICtrlSetState($Grenade_Label_1, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_2, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_3, $GUI_DISABLE)
		GUICtrlSetState($Grenade_Label_4, $GUI_DISABLE)
	EndIf	
	
	
	
		
	;Doll Check
	If (StringInStr($dollinfo[1][1], "1")) Then
		GUICtrlSetState($Doll_Spell_1  , $GUI_CHECKED)
	EndIf
	
	If (StringInStr($dollinfo[1][1], "2")) Then
		GUICtrlSetState($Doll_Spell_2  , $GUI_CHECKED)
	EndIf
	
	If (StringInStr($dollinfo[1][1], "3")) Then
		GUICtrlSetState($Doll_Spell_3  , $GUI_CHECKED)
	EndIf
	
	If (StringInStr($dollinfo[1][1], "4")) Then
		GUICtrlSetState($Doll_Spell_4  , $GUI_CHECKED)
	EndIf
	
	If (StringInStr($dollinfo[1][1], "5")) Then
		GUICtrlSetState($Doll_Spell_5  , $GUI_CHECKED)
	EndIf
	
	If (StringInStr($dollinfo[1][1], "6")) Then
		GUICtrlSetState($Doll_Spell_6  , $GUI_CHECKED)
	EndIf
	
	If (StringInStr($dollinfo[1][1], "7")) Then
		GUICtrlSetState($Doll_Spell_7  , $GUI_CHECKED)
	EndIf
	
	If (StringInStr($dollinfo[1][1], "8")) Then
		GUICtrlSetState($Doll_Spell_8  , $GUI_CHECKED)
	EndIf
	
EndFunc
